package com.wangshouyu.log.config;

import com.wangshouyu.log.print.DefaultLogPrint;
import com.wangshouyu.log.print.LogPrint;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author 王守钰
 * @description 基础aop日志打印配置信息
 * @date 2020/7/23 12:47
 */
@EnableAspectJAutoProxy
public abstract class AbstractLogConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public LogPrint requestLogPrint(){
        return new DefaultLogPrint();
    }
}
